-- GENERATED SPELL FOR [Illidari Overseer] --


function spell0_21808(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(32736,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21808', 5311, 1)
end

function spell1_21808(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(11977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21808', 15000, 1)
end

function Sorts_21808(pUnit, Event)
local choix_sorts_21808 = math.random(0, 1)
if choix_sorts_21808 == 0 then
pUnit:RegisterEvent('spell0_21808', 1, 1)
end
if choix_sorts_21808 == 1 then
pUnit:RegisterEvent('spell1_21808', 1, 1)
end
end

function mob21808_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21808', math.random(1500, 3000), 1)
end

function mob21808_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21808_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21808_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21808, 1, 'mob21808_Action')
RegisterUnitEvent(21808, 2, 'mob21808_Leave')
RegisterUnitEvent(21808, 3, 'mob21808_Kill')
RegisterUnitEvent(21808, 4, 'mob21808_Die')
